#define _CRT_SECURE_NO_WARNINGS 1
#include "Sort.h"
void text()
{
	srand(time(0));
	int n = 10;
	int* a1 = (int*)malloc(sizeof(int) * n);
	int* a2 = (int*)malloc(sizeof(int) * n);
	for (int i = 0; i < n; i++)
	{
		a1[i] = rand() % 50;
		a2[i] = a1[i];
	}
	int a[] = { 6,1,2,7,9,8,4,5,10,8 };
	//int begin1 = clock();
	//InsertSort(a1, n);
	//int end1 = clock();
	//Print(a1, n);
	//int begin2 = clock();
	//ShellSort(a2, n);
	//int end2 = clock();
	//printf("%d\n", end1 - begin1);
	//printf("%d\n", end2 - begin2);
	//Print(a2, n);
	//SelectSort(a1, n);
	//Print(a1, n);
	//BubbleSort(a1, n);
	//Print(a1, n);
	//HeapSort(a1, n);
	//Print(a1, n);
	//QuickSort(a, 0, 10 - 1);
	//Print(a, 10);
	//QuickSortD(a1, 0, n - 1);
	//Print(a1, n);
	//MergeSort(a1, n);
	//Print(a1, n);
	//MergeSortD(a1, n);
	//Print(a1, n);
	//QuickSortF(a1, 0, n - 1);
	//Print(a1, n);
	CountSort(a, 10);
	Print(a, 10);
}
int main()
{
	text();
	return 0;
}